<layout name="news" />
<block name="content">
	<style>
		img{
			color: rgb(51, 51, 51);
			cursor: auto;
			display: block;
			font-size: 14px;
			font-style: normal;
			font-variant: normal;
			font-weight: normal;
			height: 45px;
			left: 15px;
			line-height: 22px;
			list-style-image: none;
			list-style-position: outside;
			list-style-type: none;
			position: absolute;
			text-align: left;
			text-decoration: none;
			top: 15px;
		}
		.fly-avatar img {
			height: 45px;
		}
		.table h2 {
			display: block;
			padding-left: 10px;
			font-size: 16px;
			width: 100%;
			padding-top:5px;
			padding-right:10px;
		}
		.fly-list-info {	
			float:right;		
			color: rgb(153, 153, 153);
			display: block;			
			font-size: 13px;
			font-style: normal;
			font-variant: normal;
			font-weight: normal;
			height: 23px;
			line-height: 22px;
			list-style-image: none;
			list-style-position: outside;
			list-style-type: none;
			margin-bottom: 0px;
			margin-left: 0px;
			margin-right: 0px;
			margin-top: 0px;
			overflow-x: hidden;
			overflow-y: hidden;
			padding-bottom: 0px;
			padding-left: 70px;
			padding-right: 10px;
			padding-top: 0px;
			position: relative;
			text-align: left;
			text-overflow: ellipsis;
			white-space: nowrap;			
			-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		}
	</style>
	<div class="wrap">
		{:widget('page_header/search',array('name'=>$folder_name))}
		<div class="sub">
			<div class="table">
				<ul class="" style="border-top: solid 1px #ccc;">
					<if condition="empty($list)">
						<li class="no-data">
							没找到数据
						</li>
					</if>
					<form method="post" action="" id="form_data">
						<foreach name="list" val="vo">
							<li style="display:block;position: relative;height:75px;border-bottom: 1px solid #ccc">
								<h2><a href="{:url('news_read',array('id'=>$vo['id']))}">{$vo.name}</a></h2>
								<div class="fly-list-info">
									{$vo.user_name} {:to_date($vo['create_time'],'Y-m-d')}
								</div>
							</li>
						</foreach>
					</form>
				</ul>
			</div>
			<if condition="!empty($list)">
				{$page}
			</if>
		</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global'], function() {
			var $ = layui.jquery;
			set_return_url(null);
		});
	</script>
</block>